-- GENERATED SPELL FOR [Khan Shaka] --


function spell0_5602(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_5602', 650, 1)
end

function spell1_5602(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5602', 10350, 1)
end

function spell2_5602(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5602', 15000, 1)
end

function Sorts_5602(pUnit, Event)
local choix_sorts_5602 = math.random(0, 2)
if choix_sorts_5602 == 0 then
pUnit:RegisterEvent('spell0_5602', 1, 1)
end
if choix_sorts_5602 == 1 then
pUnit:RegisterEvent('spell1_5602', 1, 1)
end
if choix_sorts_5602 == 2 then
pUnit:RegisterEvent('spell2_5602', 1, 1)
end
end

function mob5602_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5602', math.random(1500, 3000), 1)
end

function mob5602_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5602_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5602_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5602, 1, 'mob5602_Action')
RegisterUnitEvent(5602, 2, 'mob5602_Leave')
RegisterUnitEvent(5602, 3, 'mob5602_Kill')
RegisterUnitEvent(5602, 4, 'mob5602_Die')
